<template>
  <div class="">
    <h1>详情页面</h1>
    <h2>
      这个点击列表传过来的id =
      <span style="color:red;">{{ obj }}</span>
    </h2>
  </div>
</template>

<script>
import { ref, reactive, toRefs } from "vue";
import { useRoute } from "vue-router";
export default {
  setup(props, { emit }) {
    let route = useRoute();
    let obj = route.query.id;
    return { obj };
  },
  components: {},
};
</script>

<style lang="scss" scoped></style>
